<table>
	<tr><td>
<!-- listado de los alumnos de preyoga -->
	<table border="1">
	<tr><th align="center" colspan="6">Pre-Y&ocirc;ga ( <%=h @horario.alumnos_preYoga.size%> alumnos )</th></tr>
	<tr>
		<th>Nro</th>
		<th>Nombre Completo</th>
		<th>Plan</th>
		<th>G.E.</th>
		<th>R.M.</th>
		<th>R.D.</th>
	</tr>
	<%	@nro = 1
		 	for alumno in @horario.alumnos_preYoga %>
				<tr class="row<%=@nro%2%>">
					<td><%=h @nro %></td>
					<td>
						<%= "<i>" if alumno.es_vip?%>
							<%= link_to h(alumno.nombre_completo), :action => 'show', :controller=>'alumnos', :id => alumno %>
						<%= "</i>" if alumno.es_vip?%>
					</td>
					<td class=<%= if !alumno.fin_plan or alumno.fin_plan<Date.today then
							 "'plan_vencido'"
						   elsif alumno.fin_plan < Date.today.next_month then
							 "'plan_proximo_vencer'"
						   end %>>
						<%=h "#{alumno.plan_vigente.nombre}: " if alumno.plan_vigente %><%=h  prt_date(alumno.fin_plan)%>
					</td>
					<td align="center"<%if not alumno.ultima_gestion or alumno.ultima_gestion < 1.year.ago then %> class="plan_vencido">hacer<%else%>>ok<%end%></td>
					<td align="center"<%if not alumno.ultima_revisacion or alumno.ultima_revisacion < 1.year.ago then %> class="plan_vencido">hacer<%else%>>ok<%end%></td>
					<td align="center"<%if not alumno.ultima_reunion or alumno.ultima_reunion < 1.year.ago then %> class="plan_vencido">hacer<%else%>>ok<%end%></td>
				</tr>
		<% 	@nro += 1
			end
			while @nro <= Horario::VACANTES %>
				<tr class="row<%=@nro%2%>"><td><%=h @nro%></td><td colspan="5" align="center">-</td></tr>
			<%
				@nro += 1
			end %>
	</table>
	</td><td>
<!-- listado de los alumnos de yoga -->
	<table border="1">
	<tr><th align="center" colspan="6">Y&ocirc;ga ( <%=h @horario.alumnos_yoga.size%> alumnos )</th></tr>
	<tr>
		<th>Nro</th>
		<th>Nombre</th>
		<th>Plan</th>
		<th>G.E.</th>
		<th>R.M.</th>
		<th>R.D.</th>
		
	</tr>
	<%	@nro = 1
		for alumno in @horario.alumnos_yoga %>
<!-- fila del alumno -->
			<tr class="row<%=@nro%2%>">
				<td><%=h  @nro %></td>
				<td><%=  link_to h(alumno.nombre_completo), :action => 'show', :controller=>'alumnos', :id => alumno %></td>
				<td class=<%= if !alumno.fin_plan or alumno.fin_plan<Date.today then
						 "'plan_vencido'"
					   elsif alumno.fin_plan < Date.today.next_month then
						 "'plan_proximo_vencer'"
					   end %>>
					<%=h "#{alumno.plan_vigente.nombre}: " if alumno.plan_vigente %>: <%=h  prt_date(alumno.fin_plan)%>
				</td>
					<td align="center"<%if not alumno.ultima_gestion or alumno.ultima_gestion < 1.year.ago then %> class="plan_vencido">hacer<%else%>>ok<%end%></td>
					<td align="center"<%if not alumno.ultima_revisacion or alumno.ultima_revisacion < 1.year.ago then %> class="plan_vencido">hacer<%else%>>ok<%end%></td>
					<td align="center"<%if not alumno.ultima_reunion or alumno.ultima_reunion < 1.year.ago then %> class="plan_vencido">hacer<%else%>>ok<%end%></td>
			</tr>
	<% 	@nro += 1
		end
		while @nro <= Horario::VACANTES %>
				<tr  class="row<%=@nro%2%>"><td><%=h @nro%></td><td colspan="5" align="center">-</td></tr>
			<%
				@nro += 1
		end %>
	</table>
	</td></tr>
</table>
<table>
	<tr><th>ExAlumnos de este horario este mes</th></tr>
	<% for exalumno in @horario.exalumnos_este_mes %>
		<tr><td><%= link_to exalumno.nombre_completo, :controller=>'personas', :action=>'pre_show', :id=>exalumno.id %></td></tr>
	<% end %>
</table>